package com.example.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.common.utils.PageUtils;
import com.example.gulimall.product.entity.CategoryEntity;
import com.example.gulimall.product.vo.Catelog2Vo;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author gulin
 * @email gulinvip@gmail.com
 * @date 2021-05-28 22:29:41
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> getLevel1Catagories();

    Map<String, List<Catelog2Vo>> getCatelogJson();
    Map<String, List<Catelog2Vo>> getCatelogJsonFroSpringCache();

    List<CategoryEntity> queryCategoryTreeList();

    Long[] findCatelogPath(Long catelogId);

    void updateCascade(CategoryEntity category);
}

